﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RoleCommision.aspx.cs" Inherits="Skyworth.CRM.Web.SystemManagement.RoleCommision" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>对角色授权</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <%--[if IE]>
     <link href="../themes/css/ieHack.css" rel="stylesheet" type="text/css" />
    <![endif]--%>
    <link href="../themes/default/style.css" rel="stylesheet" type="text/css" />
    <link href="../themes/css/core.css" rel="stylesheet" type="text/css" />
    <link href="../themes/css/pages.css" rel="stylesheet" type="text/css" />
    <link href="../themes/css/wbox.css" rel="stylesheet" type="text/css" />
    <link href="../themes/css/Messagebox.css" rel="stylesheet" type="text/css" />

    <script src="../javascripts/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="../javascripts/MessageBox.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function() {

        $(".tableList table.list tbody tr[class!='tableHeader']").hover(function() { $(this).addClass("hover"); },
                                                    function() { $(this).removeClass("hover"); })
            $("a[disabled='disabled']").css("color", "#c2c2c2");
        
        })
    
    </script>
   
</head>
<body style="overflow:visible;background-color: #FFF;">
<div>
    <form id="form1" runat="server">
    <div>
          <div >
              <div class="pageHeader">
                <div class="searchBar" style="padding:4px 5px;">
                    <ul >
                         <li style="float: left;">
                        <span >系统模块：</span>
                            <asp:DropDownList ID="ddlModules" runat="server" AppendDataBoundItems="True" 
                                 DataTextField="ModuleName" DataValueField="ModuleID" AutoPostBack="True" 
                                 onselectedindexchanged="ddlModules_SelectedIndexChanged">
                            </asp:DropDownList>
                        </li>
                        <li style="float: right;">
                        <span >角色名称：</span>
                        <asp:Label ID="labRoleName" runat="server" Text="fadsf" style="color:Red; font-size:large; font-weight:bold "></asp:Label>
                        </li>
                        
                        <li style="clear: both" ></li>
                    </ul>                    
                </div>
            </div>          
          </div>
          
           <div >
                <div class="tableList">
              <asp:GridView ID="gvModuleView" runat="server" DataKeyNames="MenuID,pageFunction,pageAuthority" 
                   CssClass="list" Width="100%"
                            AllowSorting="True" AutoGenerateColumns="False" OnRowDataBound="ModuleView_RowDataBound"
                            OnSelectedIndexChanging="ModuleView_SelectedIndexChanging" 
                   GridLines="None" AlternatingRowStyle-CssClass="trbg" HeaderStyle-CssClass="tableHeader">
                            <Columns>
                                <asp:TemplateField HeaderText="页面名称">
                                    <ItemTemplate>
                                        <asp:Label ID="lab_ID" runat="server" Text='<%# Eval("MenuID")%>' Style="display: none"></asp:Label>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("MenuName") %>'></asp:Label>
                                        <asp:Label ID="lab_Verify" runat="server" Text="" Style="display: none"></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle Wrap="False" />
                                    <ItemStyle Wrap="False" Width="150px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="功能列表">
                                    <ItemTemplate>
                                        <asp:CheckBoxList ID="AuthorityList" runat="server" RepeatDirection="Horizontal"
                                            RepeatLayout="Flow">
                                        </asp:CheckBoxList>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText=" 更新 ">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="btn_update" runat="server" CommandArgument='<%# Eval("MenuID")%>'
                                            CausesValidation="False" CommandName="Select" Text="更新" Enabled="False"></asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle Width="40px" Wrap="False" />
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                </div>
          </div>
    </div>
    </form>
</div>
</body>
</html>
